{% macro form_field(field,clsgroup='form-group') %}
    <div class="{{clsgroup}}">
       {{ field.label }}
       {{ field(**kwargs) }}
    </div>
    {% if field.errors %}
        {% for error in field.errors %}
            <small class="error">{{ error }}</small><br>
        {% endfor %}
    {% endif %}
{% endmacro %}